package com.yalisanda.edu.service.impl;

import com.yalisanda.edu.entity.Eduteacher;
import com.yalisanda.edu.entity.vo.TeacherVo;
import com.yalisanda.edu.mapper.TeacherMapper;
import com.yalisanda.edu.service.TeacherService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TeacherServiceImpl implements TeacherService {
    @Resource
    private TeacherMapper teacherMapper;

    @Override
    public List<TeacherVo> findAllTeachers() {
        return teacherMapper.findAllTeachers();
    }

    @Override
    public Eduteacher findTeacherById(Integer id) {
        return teacherMapper.findTeacherById(id);
    }
}
